#CROSS_COMPILE=arm-none-linux-gnueabi-

CURDIR=$(PWD)
CC = $(CROSS_COMPILE)g++

#CFLAGS += -Wall -O2 -I./include
#LDFLAGS += -L$(CURDIR)/lib -ljpeg

SRCS = $(wildcard *.cpp)
#SRCS += $(patsubst %.c,%.o,$(wildcard src/*.c))

OBJS = $(SRCS:.cpp=.o)

TARGET = aes

$(TARGET): $(OBJS)
	$(CC) $^ -o $@ $(LDFLAGS)

clean:
	rm -f $(OBJS) $(TARGET)

%.o: %.cpp
	$(CC) $(CFLAGS) -c -o $@ $<
